Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve flags handling for meson #1303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mering
Copy link

@mering mering commented Oct 16, 2024

This aligns this to what other tools are doing. The _join_flags_list() pattern is also used for other foreign build tools.

This is required to fix --sysroot flag even without cross compiling for example when using in combination with a hermetic toolchain. This flag is only available in get_flags_info() and for the complicated ffmpeg build this works flawlessly. Without it being absolute, it doesn't work.

This is required to fix libdav1d in #1295.

@voxeljorge
Copy link
Contributor

I have been able to reproduce the error in a similar build and can confirm that this patch fixes my error, which also was due to the --sysroot flag being a relative path instead of an absolute path before being passed to meson.

This aligns this to what other tools are doing.

This is required to fix --sysroot flag even without cross compiling for example when using in combination with a hermetic toolchain.
@mering
Copy link
Author

mering commented Jan 2, 2025

@voxeljorge @jsharpe could you help me fix the Windows examples build? I don't have this platform available and don't know much about building on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants